<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 500px;
            height: 500px;
            border: 1px solid #000;
            margin: 100px auto;
            border-radius: 50%;
            overflow: hidden;
            position: relative;
            /* animation: name duration timing-function delay iteration-count direction fill-mode; */
            animation: move 5s linear infinite;
            /* transition: all linear 5S; */
        }
        /* .box:hover{
            transform: rotateZ(360deg);
        } */
        .one{
            width: 250px;
            height: 500px;
            background-color: #fff;
            float: left;
        }
        .two{
            width: 250px;
            height: 500px;
            background-color: #000;
            float: left;
        }
        .white{
            width: 250px;
            height: 250px;
            background-color: #fff;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
        }
        .black{
            width: 250px;
            height: 250px;
            background-color: #000;
            border-radius: 50%;
            margin: 0 auto;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }
        .black_one{
            width: 150px;
            height: 150px;
            background-color: #000;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            margin: auto;
        }
        .white_one{
            width: 150px;
            height: 150px;
            background-color: #fff;
            border-radius: 50%;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            margin: auto;
        }
        @keyframes move {
            0%{
                transform: rotateZ(0deg);
            }
            100%{
                transform: rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="one">
            <div class="white">
                <div class="black_one"></div>
            </div>
        </div>
        <div class="two">
            <div class="black">
                <div class="white_one"></div>
            </div>
        </div>
    </div>
</body>
</html>